import React, { StrictMode } from 'react'
import ReactDOM from 'react-dom'
import App from './App.jsx'
// 6.引入状态管理器
import store from './store'
function render () {
  ReactDOM.render(
    <StrictMode>
      <App />
    </StrictMode>,
    document.getElementById('root')
  )
}
render()
// 7.订阅状态管理器的改变
store.subscribe(render)

